@echo off
chcp 65001 >nul
echo 🚀 Agent Boss 测试工具
echo ========================================
echo.
echo 选择测试模式:
echo 1. 核心功能测试 (推荐)
echo 2. 完整Django测试
echo 3. 生成测试报告
echo 4. 退出
echo ========================================
echo.

:menu
set /p choice=请输入选择 (1-4): 

if "%choice%"=="1" goto core_test
if "%choice%"=="2" goto django_test
if "%choice%"=="3" goto report
if "%choice%"=="4" goto exit
echo ❌ 无效选择，请输入1-4
goto menu

:core_test
echo.
echo 🧪 运行核心功能测试...
set PYTHONIOENCODING=utf-8
python agent_boss/core_test.py
echo.
pause
goto menu

:django_test
echo.
echo 🧪 运行完整Django测试...
set PYTHONIOENCODING=utf-8
python manage.py test agent_boss.test_agent_boss -v 2
echo.
pause
goto menu

:report
echo.
echo 📊 生成测试报告...
set PYTHONIOENCODING=utf-8
python agent_boss/test_report.py
echo.
pause
goto menu

:exit
echo.
echo 👋 退出测试工具
pause
